UE.registerUI('imgUploadBtn',function(editor,uiName){
    var dialog = new UE.ui.Dialog({
        // iframeUrl: editor.options.UEDITOR_HOME_URL+'dialogs/135editor/135EditorDialogPage.html',
        iframeUrl: editor.options.UEDITOR_HOME_URL+'dialogs/imgUpload/imgUpload.html',
        // cssRules:"width: 200px"+ parseInt(document.body.clientWidth*0.9) +"px;height:"+(window.innerHeight -50)+"px;",
        cssRules:"width: 800px;height:480px",
        editor:editor,
        name:uiName,
        title:"图片上传",
    });
    dialog.fullscreen = false;
    dialog.modal = false;
    dialog.draggable = true;
    var btn = new UE.ui.Button({
        name:'btn-dialog-' + uiName,
        className:'edui-for-imgUploadBtn',
        title:'图片上传',
        onclick:function () {
            dialog.render();
            dialog.open();
            document.getElementsByClassName('edui-dialog-modalmask')[0].onclick=function(){
                return false
            }
        }
    });
    return btn;
},undefined);